package com.zusmart.core.condition.extend;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.zusmart.core.condition.Conditional;

//存在某个bean则实例化
@Documented
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Conditional(ConditionalOnHasBeanRule.class)
public @interface ConditionalOnHasBean {

	// 类名称
	public String value() default "";

	// 类
	public Class<?> clazz() default Void.class;

}